<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateTeamAllotsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('team_allots', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('allotId')->unsigned()->comment('allotid');
			$table->date('date')->comment('时间');
			$table->string('gx_name')->comment('工序');
			$table->string('gb_name')->comment('班组');
			$table->string('time')->comment('班次');
			$table->float('output')->nullable()->comment('产量');
			$table->float('finish')->nullable()->comment('完成');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('team_allots');
	}

}
